<template>
	<view>
		<view>{{getVar("yoyo")}}</view>
		<button type="default" @click="set()">设置Vuex值</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		computed:{
		},
		methods: {
			set() {
				this.setVar("yoyo","修改了222");
				// this.$store.state.yoyo = "修改了222";
				console.log(this.$store.state.page.yoyo);
			},
		}
	}
</script>

<style>

</style>
